namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class UsersInRoleMap : ClassMap<UsersInRoleDataModel>
    {
        #region Constructors and Destructors

        public UsersInRoleMap()
        {
            this.Table("UsersInRoles");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.UserName)
                .KeyProperty(x => x.RoleName)
                .KeyProperty(x => x.ApplicationName);
        }

        #endregion
    }
}